import VueRouter from 'vue-router';
import Vue from 'vue';

Vue.use(VueRouter);
const routes = [
  {
    path: '/',
    component: () => import(/* webpackChunkName: "login" */ '../views/login/LoginView.vue'),
  },
  {
    path: '/content',
    component: () => import(/* webpackChunkName: "content" */ '../views/ContentList.vue'),
  }
];
const router = new VueRouter({
  mode: 'history',
  routes, // 等价于 routes: routes
});
export default router;